// write your code here cpp
#include<iostream>
#include <string>

using namespace std;

int main()
{
    string n;
    while(getline(cin,n))
    {
        for(auto &e : n)
        {
            if(e >= 'A' && e <= 'Z')
                e = (e >= 'F') ? (e - 5) : (e + 21);
        }
        cout << n << endl;
    }
    return 0;
}
